JBoss Community Archive (Read Only)

Teiid 8.8

WITH Clause

Teiid supports non-recursive common table expressions via the WITH clause.  WITH clause items may be referenced as tables in subsequent with clause items and in the main query. The WITH clause can be thought of as providing query scoped temporary tables.

Usage:

WITH name [(column, ...)] AS (query expression) ...

Syntax Rules:

The WITH clause is also subject to optimization and it's entries may not be processed if they are not needed in the subsequent query.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 13:01:56 UTC, last content change 2014-07-17 12:34:57 UTC.